package com.example.gallerytest;

import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.util.Log;

public class DatabaseAdapter {

	private DatabaseHelper helper = null;
	private MainActivity activity;

	public DatabaseAdapter(Context context) {

		helper = new DatabaseHelper(context);
//		Database database = helper.getReadableDatabase();

	}

	public void setDisplay(Cursor c) {
		boolean mov = c.moveToFirst();
		while (mov) {
			activity.update(c.getString(1));
			mov = c.moveToNext();
			// layout.addView(textView);
		}
	}

}
